#/bin/bash
# Initialize a variable 'var' with value 10
var=10
# Initialize an array 'arr' with values 1, 2, 3, 4, 5
arr=(1 2 3 4 5)
# Print the value of 'var'
echo "The value of var is: $var"
# Print all elements of the array 'arr'
echo "The value @ of arr is: ${arr[@]}"
# Print the third element of the array 'arr'
echo "The ele of arr is: ${arr[2]}"
# Store the list of files in the /tmp directory into the variable 'file'
# file=$(ls /tmp/*.*)
files=()
for file in /tmp/*.*;
do
 files+=("$file")
done
# echo "The file is: $file"
echo ""
# Print the second element of the 'file' variable (assuming it is an array)
echo "The value of var is: ${files[2]}"
echo "==============================="
echo "The array is ${files[@]}"
echo "The array size is ${#files[@]}"
# echo "PATH is: ${PATH}"
